/* 
 * File:   Menu.h
 * Author: amouro-m
 *
 * Created on 30 mai 2010, 14:04
 */

#ifndef _MENU_H
#define	_MENU_H

#include <QMenuBar>
#include <QMenu>
#include <QWidget>

#include "Frame.h"

class Menu:public QMenuBar
{
    Q_OBJECT;
    
public:
    Menu(Frame* frame, QWidget* parent=0);
    Menu(const Menu& orig);
    virtual ~Menu();

private slots:
    void new_window();

    void set_bruitperlin();
    void set_fractal_julia();
    void set_fractal_mendel();

    void set_printer_normal();
    void set_printer_inversex();
    void set_printer_inversey();
    void set_printer_inversexy();

    void set_filtre_NB();
    void set_filtre_Red();
    void set_filtre_Green();
    void set_filtre_Blue();
    void set_filtre_Flou();

private:
    Frame* _frame;

    QAction* action_new_window;

    QAction* bruit_perlin;
    QAction* fractal_mendel;
    QAction* fractal_julia;

    QAction* fractal_printer_normal;
    QAction* fractal_printer_inversex;
    QAction* fractal_printer_inversey;
    QAction* fractal_printer_inversexy;

    QAction* filtre_NB;
    QAction* filtre_Flou;
    QAction* filtre_Red;
    QAction* filtre_Green;
    QAction* filtre_Blue;
};

#endif	/* _MENU_H */

